<?php

namespace App\Http\Controllers;

class MiniappController extends Controller
{
    public $uid;
    public $user;

    public function __construct()
    {
        if (auth('miniapp')->check()) {
            $this->uid = auth('miniapp')->id();
            $this->user = auth('miniapp')->user();
            logs()->info('miniapp uid: ' . $this->uid);
        }
    }
}
